<!DOCTYPE html>
<html>

<head>
  <title>Show PDF</title>
  <meta charset="utf-8" />
  <script type="text/javascript" src='pdfobject.min.js'></script>
  <style type="text/css">
    html,
    body,
    #pdf_viewer {
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
    }
  </style>
</head>

<body>
  <div id="pdf_viewer"></div>
</body>
<script type="text/javascript">
  if (PDFObject.supportsPDFs) {
    PDFObject.embed("index.pdf", "#pdf_viewer");
  } else {
    location.href = "./canvas";
  }
</script>

</html>